<?
// pr($params);

?>
<style>
.mailform_container { }
.mailform_container FORM {}
.mailform_header {font-weight:bold;}

.mailform_error { 
	border:1px solid #fbb;
	background: #FFE2E2 ;
	color:red;
	margin:5px 0; padding:5px;
	text-align:center;
 }
.mailform_body {overflow:hidden;}
.mailform_label {font-size:85%; margin-top:7px;}
.mailform_label B {font-size:130%; color:red; padding-left:5px;}
.mailform_field { width:100%; margin:0; overflow:hidden;}
.mailform_field INPUT {width:98%;}
.mailform_field .input_file {width:auto;}

.mailform_field TEXTAREA {
	height:80px; 
	width:98%;
}

*HTML DIV
.mailform_field TEXTAREA {
	overflow:auto; 
	
	margin:0 0px;
	
	} 
 
.mailform_submits {margin:7px 0;}
.mailform_submits INPUT {}

</style>


<?=Mailform::start()?>

<?if($error){?><div class=mailform_error><?=$error?><script>alert("<?=$params['error_alert']?>")</script></div><?}?>

<DIV class=mailform_container>
 <?if(val($header)){?><div class=mailform_header><?=$header?></div><?}?>

	
	
	<DIV class=mailform_body>


	<?= Mailform::fields(
			"
			<div class=mailform_label>%label%</div>
			<div class=mailform_field >%field%</div>
			"
		);
	?>

	<div class=mailform_submits >
		<?=Mailform::submits()?>
	</div>

<?if($required_exists){?>
	<span class=mailform_label><b>*</b></span> 
	<small>- поля помеченные звездочкой обязательны для заполнения.</small>	
<?}?>

</DIV>


<?=Mailform::end();?>
</DIV>
